﻿<UserControl x:Class="PhotoKiosk.View.UserControls.NumbersPadAndTextView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:resx="clr-namespace:PhotoKiosk.Properties"
             mc:Ignorable="d" Height="400" Width="300">
    <Grid HorizontalAlignment="Center">
        <TextBox Text="{Binding Number, Mode=OneWay}" Height="43" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="5,10,0,0" VerticalAlignment="Top" HorizontalAlignment="Center" Width="190" FontSize="24">
            <TextBox.Style>
                <Style TargetType="TextBox">
                    <Setter Property="Background" Value="#77F4F4F5"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding ErrorColor}" Value="true">
                            <Setter Property="Background" Value="#77C32C2C" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </TextBox.Style>
        </TextBox>

        <Button Command="{Binding Pad1PressCommand}" Content="{Binding Pad1PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="5,75,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Button Command="{Binding Pad2PressCommand}" Content="{Binding Pad2PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="75,75,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Button Command="{Binding Pad3PressCommand}" Content="{Binding Pad3PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="145,75,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Button Command="{Binding Pad4PressCommand}" Content="{Binding Pad4PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="5,145,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Button Command="{Binding Pad5PressCommand}" Content="{Binding Pad5PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="75,145,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Button Command="{Binding Pad6PressCommand}" Content="{Binding Pad6PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="145,145,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Button Command="{Binding Pad7PressCommand}" Content="{Binding Pad7PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="5,215,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Button Command="{Binding Pad8PressCommand}" Content="{Binding Pad8PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="75,215,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Button Command="{Binding Pad9PressCommand}" Content="{Binding Pad9PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="145,215,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Button Command="{Binding PadDeletePressCommand}" Content="{x:Static resx:Resources.Delete}" Height="60" HorizontalAlignment="Left" Margin="5,285,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Button Command="{Binding Pad0PressCommand}" Content="{Binding Pad0PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="75,285,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Button Command="{Binding PadSeparatorPressCommand}" Content="{Binding PadSeparatorPressCommandText}" Height="60" HorizontalAlignment="Left" Margin="145,285,0,0" VerticalAlignment="Top" Width="60" FontSize="18" FontWeight="Bold" Background="#55000000"/>
        <Label Content="{Binding Error}" HorizontalContentAlignment="Center" VerticalAlignment="Top" Foreground="Red" FontSize="13" Margin="-0,53,0,0"/>
    </Grid>

</UserControl>
